

#include <iostream>
#include <list>
#include <iterator>
#include <algorithm>

using namespace std;

int main() {

    list<int> coll;

    for (int i = -3; i <= 9; ++i) {

        coll.push_back(i);
    }

    list<int>::iterator pos;

    pos = find(coll.begin(), coll.end(), -2);

    if (pos != coll.end()) {

        cout << "distance " << distance(coll.begin(), pos) << endl;
    }

    return 0;
}